package day18_Reflection.demo06_Reg;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

//判断手机号  长度11 开头为1
public class Demo05_判断手机号 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.next();
        String reg="^1\\d{10}$";
        Pattern compile = Pattern.compile(reg);
        Matcher matcher = compile.matcher(s);
        boolean matches = matcher.matches();
        System.out.println(matches);
    }
}
